<template>
  <div style="width: 100%; height: 100%; text-align: center;">
    <div>
      <img :src="item.imgUrl" class="imgView">
      <div class="textView ellipsis2 flex_center" :class="item.active ? 'color_active' : 'color_grey'" >
        <div style="text-align: center">{{item.text}}</div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "OrgRightItem",
    props: {
      item: {
        type: Object,
        default: {},
      },
    },
  }
</script>

<style scoped>
  .imgView {
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }

  .textView {
    font-size: 12px;
    height: 16px;
    word-break: break-all;
    width: 100%;
    margin-top: 4px;
    line-height: 14px;
    font-family: PingFang-SC-Medium;
  }
  .color_active{
    color: #323334;
  }
  .color_grey{
    color: #98999E;
  }
</style>
